<?php

class Admin_product_packages_model extends CI_Model{
	
	function listPackages($start_row = '',$limit = ''){
		$limit_txt = (!empty($start_row) && !empty($limit))? 'LIMIT '.$start_row.','.$limit:'';
		$query = $this->db->query("SELECT * FROM mlme_products WHERE type = 'package' $limit_txt");
		return $query->result_array(); 
	}
}